package com.fadadianqi.goods.dao;

import com.fadadianqi.commons.BaseDAO;
import com.fadadianqi.goods.model.BrandCategoryRelation;
import com.yeqiangwei.commons.util.Pagination;

import java.util.List;

/**
 * Created by aroot on 2/9/14.
 */
public interface BrandCategoryRelationDAO extends BaseDAO<BrandCategoryRelation> {
    BrandCategoryRelation getByBrandIdAndCategoryId(String brandId, String categoryId);

    List<BrandCategoryRelation> findAll(Pagination pagination);

    List<BrandCategoryRelation> findByBrandId(String bid);

    List<BrandCategoryRelation> findByCategoryId(String cid);
}
